﻿using System;
using System.Collections.Generic;
using System.ComponentModel.Composition;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Controls;
using Microsoft.VisualStudio.Shell;
using UCL.Powersource;

namespace PowersourceUIToolkit
{

    public class ToolWindowPaneConductor : ViewConductorBase
    {

        internal ToolWindowPane ToolWindowPane { get; private set; }


        public ToolWindowPaneConductor(ToolWindowPane twp)
        {
            ToolWindowPane = twp;
            Initialize();
        }


        protected override bool OnInitializing()
        {
            var rVal = base.OnInitializing();
            ToolWindowPane.Content = TopContentControl;
            return rVal;
        }

        protected override void OnDisposing()
        {

            ToolWindowPane = null;
            base.OnDisposing();
        }
    }
}
